<template>
  <div>
    <h2>新闻资讯页</h2>
  <div class="newslist">
    <ul class="newslist_ul">
      <li></li>
    </ul>
  </div>
  </div>
</template>

<script>
const axios = require('axios')
export default {
  methods: {
    getAlldata () {
      const data = new URLSearchParams()
      data.append('fore_cid', 1)
      data.append('fore_pulls', 'yes')
      data.append('return_parameter', 'name||content||pic')
      data.append('pagesize', 5)
      data.append('page', 1)
      data.append('orderdesc', 'orders')
      axios.post('/api', data).then(e => {
        console.log(e)
      })
    }
  },
  created () {
    this.getAlldata()
  }
}
</script>

<style>
.newslist{
  width: 6.9rem;
  height: auto;
  padding: 0.3rem 0.3rem;
}
.newslist_ul{
  width: 100%;
  height: auto;
}
.newslist_ul li{
  width: 100%;
  height: 1.2rem;
}
</style>
